<?php
class Zend_View_Helper_ShowIndex {
    public function showIndex($view) {

    	$menu = $view->Menu;
    	$str='';
        
        $str .= '<table>';
		$str .= '<tr>';
    	$str .= '<th>Menu Id</th>';
    	$str .= '<th>Name</th>';
    	$str .= '<th>Description</th>';
    	$str .= '<th>User Id</th>';
    	$str .= '<th>User Name</th>';
    	$str .= '<th>Created Date</th>';
    	$str .= '<th>Language</th>';
    	$str .= '<th>&nbsp;</th>';
		$str .= '</tr>';

        
        foreach ($menu as $menu) {
        	$str .= '<tr>'; 	
            $str .='<td>'.$menu->menu_id.'</td>';
            $str .='<td>'.$menu->name.'</td>';
            $str .='<td>'.$menu->description.'</td>';
            $str .='<td>'.$menu->user_id.'</td>';
            $str .='<td>'.$menu->user_name.'</td>';
           	$str .='<td>'.$menu->created_date.'</td>';
            $str .='<td>'.$menu->language.'</td>';
            $str .='</tr>';
        }
        
        $str .= '<table>';
        
        return $str; 

    }
}